package com.wl.designpattern.decorator;

/**
 * Created by wangliang on 2021/2/27.
 */
public class BedRoom extends RoomDecorator { //卧室类，继承自RoomDecorator

    public BedRoom(Room room) {
        super(room);
    }

    @Override
    public void fitment() {
        super.fitment();
        addBedding();
    }

    private void addBedding() {
        System.out.println("装修成卧室：添加卧具");
    }
}
